@import "../../common/common.scss";

.left-nav {
  width: 120px;
  height: 100%;
  background: $bkColor;
  z-index: 9;
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  a {
    text-decoration: none;
    color: inherit;
  }
  .left-logo {
    width: 120px;
    height: 120px;
    background: $navHoverColor;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    font-size: 13px;
    .icon {
      max-width: 56px;
      max-height: 56px;
      min-width: 34px;
      min-height: 34px;
      //background: deepskyblue;
    }
    span {
      margin-top: 5px;
      display: block;
    }
  }
  >ul {
    width: 145px;
    height: calc(100% - 120px);
    overflow-y: auto;
    font-size: 14px;
  }
  >ul>li {
    width: 120px;
    height: 120px;
    cursor: pointer;
    text-align: center;
    >a {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      &.active, &:hover {
        background: $navHoverColor;
      }
    }
    .nav-item {
      .icon {
        width: 38px;
        height: 38px;
        background-repeat: no-repeat;
        //background: deepskyblue;
      }
      span {
        margin-top: 3px;
        display: block;
        color: #13a1e0;
      }
    }
    > a.active, >a:hover {
      .nav-item {
        > span {
          color: white;
        }
        .icon {
          background-position: -38px 0;
        }
      }
    }
  }
  color: white;
}

@media screen and (max-width: 1400px) {
  .left-nav {
    width: 80px;
    .left-logo {
      width: 80px;
      height: 80px;
      font-size: 12px;
      .icon {
        max-width: 38px;
        max-height: 38px;
        min-width: 23px;
        min-height: 23px;
      }
      span {
        margin-top: 3px;
      }
    }
    >ul {
      width: 97px;
      height: calc(100% - 80px);
      font-size: 12px;
    }
    >ul>li {
      width: 80px;
      height: 80px;
      .nav-item {
        .icon {
          width: 38px;
          height: 38px;
        }
        span {
          margin-top: 3px;
          display: block;
          color: #13a1e0;
        }
      }
      > a.active, >a:hover {
        .nav-item {
          .icon {
            background-position: -38px 0;
          }
        }
      }
    }
  }
}